import request from '@/utils/libs/request'

/**
 * 友情链接列表
 * @param params
 */
export function FriendLinkList(params: Record<string, any>) {
    return request.get('friend_link/list', { params })
}

/**
 * 添加友情链接
 * @param params
 */
export function addFriendLink(params: Record<string, any>) {
    return request.post('friend_link/add_link', params)
}

/**
 * 编辑友情链接
 * @param params
 */
export function editFriendLink(params: Record<string, any>) {
    return request.post('friend_link/edit_link', params)
}

/**
 * 删除友情链接
 * @param params
 */
export function deleteFriendLink(params: Record<string, any>) {
    return request.post('friend_link/delete_link', params)
}
